import request from '../utils/request'
// 正在热映
export function In_theaters() {
  return request({
    url: "/in_theaters",
    method: "GET"
  })
}
// 影片详情
export function Subject(id) {
  const params = {
    id
  }
  return request({
    url: `/subject/${params.id}`,
    method: "GET",
    params
  })
}
// 即将上映
export function Coming_soon() {
  return request({
    url: "/coming_soon",
    method: "GET"
  })
}
// 排行榜
export function Top250() {
  return request({
    url: "/top250",
    method: "GET"
  })
}
// 排行榜上拉加载
export function Top250_loading(start) {
  const loading = {
    start
  }
  return request({
    url: `/top250?start=${loading.start}&count=20`,
    method: "GET",
    loading
  })
}
